﻿@using Project.Resource.Home
@using Project.Resource.Template
@using Project.Resource.User
@using Framework.Util.Helpers
<!DOCTYPE html>
<html>    
    <head>
        <meta charset="utf-8" />
        <title>@ViewBag.Title</title>
        <link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Lato:400,700" type="text/css" />
        @Content.Css("prettyPhoto.css", Url)
        @Content.Css("flexslider.css", Url)
        @Content.Css("stratosfera.css", Url)                        
        @Content.Css("style.css", Url)
        @Content.Css("login.css", Url)
        @Content.Script("jquery-1.7.2.min.js", Url)
	    @Content.Script("jquery-ui-1.8.19.min.js", Url)
	    @Content.Script("jquery.validate.min.js", Url)
	    @Content.Script("jquery.validate.unobtrusive.min.js", Url)
	    @Content.Script("jquery.unobtrusive-ajax.min.js", Url) 
        @Content.Script("jquery.fitvids.js", Url)
        @Content.Script("slides.min.jquery.js", Url)
        @Content.Script("jquery.prettyPhoto.js", Url)
        @Content.Script("jquery.easing.1.3.js", Url)
        @Content.Script("jquery.animate-colors-min.js", Url)
        @Content.Script("jquery.backgroundPosition.js", Url)
        @Content.Script("jquery.touchwipe.min.js", Url)
        @Content.Script("jquery.touchwipe.min.js", Url)
        @Content.Script("jquery.misc.js", Url)        
        @Content.Script("jquery.flexslider-min.js", Url)
        @Content.Script("jquery.carouFredSel.js", Url)
        @Content.Script("jquery.fitvids.js", Url)
        @Content.Script("popup.js", Url)
        @Content.CSSBase("jquery.ui.all.css", Url)
        @Content.Script("admin.js", Url)  
        @Content.Css("jquery.fancybox.css", Url)
        @Content.Script("jquery.fancybox.pack.js", Url)
        <!--[if (gte IE 6)&(lte IE 8)]>
        <script src="https://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
        <script type="text/javascript" src="@Url.Content("~/Scripts/selectivizr-min.js")"></script>
        <link rel="stylesheet" href="@Url.Content("~/Content/css/ie_7.css")" type="text/css" />
        <![endif]-->
    </head>
    <body>
        
@{
    var culture = "";
    if (Session["Culture"] != null && Session["Culture"].ToString().Equals("vi-VN"))
    {
        culture = "vi-VN";
    }
}

        <script type="text/javascript">
            var root = '@Request.ApplicationPath';
            var culture = '@culture.ToString()';
            $(window).load(function () {
                $('.flexslider').flexslider();
            });

            $(function () {
                $('#work').carouFredSel({
                    width: '100%',
                    scroll: 1,
                    auto: false,
                    prev: '.prev_item',
                    next: '.next_item'
                });

                $("#work").touchwipe({
                    wipeLeft: function () { $('.next_item').trigger('click'); },
                    wipeRight: function () { $('.prev_item').trigger('click'); }
                });
            });

        </script>


        <!-- START HEADER -->                       
        <div class="topNav_main">
            <div class="userAction">
                <ul>
                    <li><a href="@Url.Action("Index", "Home")">
                        @MenuResource.Home
                        </a>
                    </li>                    
                    <li><a href="@Url.Action("Index","Sport")">@MenuResource.Soccer</a></li>
                    <li><a href="#">@MenuResource.Tennis</a></li>
                    <li><a href="#">@MenuResource.Basketball</a></li>                                                
                    <li><a href="@Url.Action("Contacts", "User")">@MenuResource.Contact</a></li>
                    @if(Request.IsAuthenticated)
                    {
                        <li><a href="@Url.Action("NewBet","Sport")">@MenuResource.NewBet</a></li>
                    }
                    <li>
                        <a href="@Url.Action("Help", "User")">@MenuResource.Help</a>
                    </li>
                </ul>    
            </div> 
            @Html.Action("AccountInfo", "User")                           
        </div>
        <div class="header clearfix">            
            <div class="logobet clearfix">
                <!-- START LOGO -->
                <div class="logo">
                    <a href="/">
                        <img src="@Url.Content("~/Content/images/logo.png")" alt="" />
                    </a>
                </div>
                <!-- END LOGO -->
            </div>            
        </div>
        <div class="clear"></div>
        <!-- START SLIDER -->
        <div class="page_content container clearfix">
            <div class="flexslider">
                <ul class="slides">                    
                    <li>
                        <img src="@Url.Content("~/Content/images/slider/banner_euro2012_1.jpg")" alt="" />                        
                    </li>
                    <li>
                        <img src="@Url.Content("~/Content/images/slider/banner_euro2012_3.jpg")" alt="" />                        
                    </li>
                    <li>
                        <img src="@Url.Content("~/Content/images/slider/banner_euro2012_2.jpg")" alt="" />                        
                    </li>
                </ul>
            </div>
        </div>
        <!-- END SLIDER -->
        <div class="clear padding10"></div>
        <div class="page_content">
            @RenderBody()
        </div>        
        <!--END CONTENT-->                
        <!-- START FOOTER SMALL -->
        <footer class="footer_bg_bottom clearfix">
            <div class="footer_bottom container" style="font-weight:500; text-align: center;padding-top: 10px; font-size: 14px; font-family: Segoe UI Light,Calibri,Verdana; font-weight: bold; color: #FFFFFF;">
                Copyright © 2012 GAMEBETPLUS.COM - Create You Betting Professional. All Rights Reserved
                <div class="clear padding20"></div>
            </div>
        </footer>
        <!-- END FOOTER SMALL -->               
        <div id="logon_fail" title="login" style="display: none;">
            You do not have authorization! Please login or <a style="color: blue;" href="@Url.Action("register", "user")">
                                                               register</a>new account
        </div>
		
        <div id="logon_failvi-VN" title="login" style="display: none;">
            Bạn không được phép! Bạn hãy đăng nhập hoặc 
            <a style="color: blue;" href="@Url.Action("register", "user")">
                                                                   đăng ký</a>tài khoản mới.
        </div>

        <div id="user_required" title="Login" style="display: none;">
            Login unsuccessfully! UserName is required!
        </div>

        <div id="user_requiredvi-VN" title="Login" style="display: none;" class="font_popup">
            Đăng nhặp thất bại! Tên đăng nhập không được trống
        </div>
	
        <div id="pass_required" title="Login" style="display: none;">
            Login unsuccessfully!. Password is required!
        </div>

        <div id="pass_requiredvi-VN" title="Login" style="display: none;" class="font_popup">
            Đăng nhặp thất bại!. Mật khẩu không được trống
        </div>
        		
        <div id="pass_incorrectvi-VN" title="Login" style="display: none;">
            Đăng nhặp thất bại!. Tên đăng nhập hoặc mật khẩu không đúng
        </div>
	
        <div id="not_active" title="Login" style="display: none;">
            Account is not actived! Please check email to complete registration
        </div>
		
        <div id="not_activevi-VN" title="Login" style="display: none;">
            Tài khoản chưa được kích hoạt! vui lòng kiểm tra Email để hoàn thành đang
            ký
        </div>

        <div id="success_ticket" title="Successfully" style="display: none;">
            Your message was send, we will reply as soon as possible.
        </div>
		
        <div id="success_ticketvi-VN" title="Tin nhắn gửi thành công" style="display: none;">
            Cảm ơn bạn! Tin nhắn gửi thành công.
        </div>

        <div id="chat_box_fail" title="authorization" style="display: none;">
            You do not have authorization. Please Login to chat!
        </div>
		
        <div id="chat_box_failvi-VN" title="authorization" style="display: none;">
            Bạn không được phép!. Bạn hãy đăng nhập để chat
        </div>

        <div id="chat_box_miss" title="Message empty" style="display: none;">
            Message is empty! Please enter message
        </div>
		
        <div id="chat_box_missvi-VN" title="Message empty" style="display: none;">
            Nội dung chát không được trống!
        </div>
        		
        <div id="withdraw_successvi-VN" title="Request successfully" style="display: none;">
            Cảm ơn bạn! Chúng tôi sẽ thực hiện sớm nhất có thể
        </div>

        
        <script type="text/javascript">    
            $("#formuser").submit(function (event) {
                event.preventDefault();
                if (!$("#UserName").val()) {           
                    var id = "user_required" + "@culture";
                    popupSite(id);
                    return false;
                }

                if (!$("#Password").val()) {
                    var id = "pass_required" + "@culture";
                    popupSite(id);
                    return false;
                } else {
                    $.ajax({
                        url: $(this).attr("action"),
                        type: $(this).attr("method"),
                        data: $(this).serialize(),
                        complete: function () {
                        },
                        success: function (data) {
                            if (data == "1") {
                                location.href = '@Url.Action("index","Home")';
                            }
                            if (data == "0") {

                                popupLogin("pass_incorrect" + "@culture");
                            }                    

                            if (data == "3") {
                                popupLogin("not_active" + "@culture");
                            }
                            return false;
                        }
                    });
                }
                return false;
            });
        </script>        
    </body>
</html>

